
package code.codeworld.know.knowledge.mapper;

import code.codeworld.know.knowledge.model.Know;
import code.codeworld.know.knowledge.model.vo.KnowVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * knowMapper接口
 *
 * @author freecode
 * @date 2023/03/23 00:20
 **/
@Mapper
public interface KnowMapper extends BaseMapper<Know> {

    int findByKeywordCount(KnowVo vo);

    List<KnowVo> findByKeyword(KnowVo vo);

    List<KnowVo> findSomeByKeyword(KnowVo vo);

    List<KnowVo> findSomeGroupByKeyword(KnowVo vo);

    Know getById(@Param("id") Long id, @Param("type")String type);

    int upMarkOnId(Know know);

}